package com.note.pojo;

import java.util.List;

public class page {
    int currentPage; //当前页
    int pageSize;    //页面大小
    int totalPage;   //总页数
    int totalData;   //数据总数
    List<notePageShow> notes;

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
        this.totalPage = this.totalData%this.pageSize==0?this.totalData/this.pageSize:this.totalData/this.pageSize+1;
    }

    public int getTotalPage() {
        return totalPage;
    }

//    public void setTotalPage(int totalPage) {
//        this.totalPage = totalPage;
//    }

    public int getTotalData() {
        return totalData;
    }

    public void setTotalData(int totalData) {
        this.totalData = totalData;
    }

    public List<notePageShow> getNotes() {
        return notes;
    }

    public void setNotes(List<notePageShow> notes) {
        this.notes = notes;
    }
}